package com.zerodg.zdutil.util.exception;

import com.zerodg.zdutil.util.Message;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @program: eroot
 * @description: .
 * @author: ztz-prince
 * @create:
 * @date:2018-12-23-00:52
 **/
public class ResultCode extends Message{

    public static ResultInfo<Object> CONNECT_ERROR;
    public static ResultInfo<Object> INSERT_ERROR;

    @Autowired
    public ResultCode(ResultInfo<Object> CONNECT_ERROR,ResultInfo<Object> INSERT_ERROR){
        this.CONNECT_ERROR=CONNECT_ERROR;
        this.INSERT_ERROR=INSERT_ERROR;
        init();
    }

    private void init(){
        CONNECT_ERROR.setCode("链接错误");
        INSERT_ERROR.setCode("插入错误");
    }


}
